inserting a node at a certain position